package com.woniuxy.sales.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.sales.model.entity.Products;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.sales.model.vo.ProductsVo;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * 【车辆表】
*/
public interface ProductsMapper extends BaseMapper<Products> {

    Page<ProductsVo> selectAll(Page<ProductsVo> productsVoPage, String categoryName,String name, String energy,int seatCount);
    // 更新价格
    void updatePrice(@Param("productId") int productId, @Param("newPrice") int newPrice);

    // 更新库存
    void updateStock(@Param("productId") int productId, @Param("newStock") int newStock);

}




